import './lib/flexible.js'
import './lib/drag-loading.js'
import './assets/iconfont/iconfont'
import Vue from 'vue'
import App from './App'
import router from './router'
import VECharts from 'vue-echarts'

import util from './lib/util'
import './lib/BeAlert-master/BeAlert.js'
import './lib/BeAlert-master/BeAlert.css'

import './lib/jquery-weui.min.css'
import './lib/weui.min.js'
import './lib/weui.min.css'
import './lib/jquery-weui.min'
import './lib/city-picker.min'

import './assets/vue-touch.js'

import Mint from 'mint-ui'
import "babel-polyfill"
import store from './store'
import '../node_modules/vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'

import EchartsJs from 'echarts'
// 手动引入 ECharts 各模块来减小打包体积
  // import 'echarts/lib/chart/line'
// 注册组件后即可使用
 Vue.component('chart', VECharts)
Vue.use(Mint)
Vue.use(util)
Vue.use(VueAwesomeSwiper)

Vue.prototype.$echarts = EchartsJs
// 注册一个全局自定义指令 v-focus
Vue.directive('focus', {
  // 当绑定元素插入到 DOM 中。
  inserted: function (el) {
    // 聚焦元素
    el.focus()
  }
})




Vue.config.productionTip = false

var data = {config:{currentPeriod:{},nextPeriod:{},periodList:[],gradeList:[],subjectList:[]}}
///ios兼容提示
try{
  window.localStorage.setItem('testSafari','true');
}catch(err){
  alert("本地储存写入错误，若为safari浏览器请关闭无痕浏览。");
}

new Vue({
  el:'#app',
  router,
  template: '<App/>',
  components: { App },
  data:data,
  store,
})






